package com.ftf.tp.user.boot;

import com.ftf.tp.common.doc.annotation.EnableDoc;
import com.ftf.tp.common.security.annotation.TpCloudResourceServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 *  主启动类
 *
 * @author tanghao
 * @date 2021/08/02
 */
@EnableDoc
@MapperScan("com.ftf.tp.user.infrastructure.mapper")
@SpringBootApplication
@ComponentScan(basePackages = {"com.ftf.tp.*"})
@EnableFeignClients(basePackages = {"com.ftf.tp.*"})
@EnableDiscoveryClient
@TpCloudResourceServer
public class TpUserApplication {

    public static void main(String[] args) {
        //禁用nacos中的logback 防止冲突
        System.setProperty("nacos.logging.default.config.enabled", "false");
        SpringApplication.run(TpUserApplication.class, args);
    }
}
